Pod::Spec.new do |s|
  s.name             = 'WDISFramework'
  s.version          = '6.10.0'
  s.summary          = 'Wonder iOS 聚合 SDK'
  s.description      = '内部聚合广告 + 数据上报一体化 SDK，仅支持真机 (iOS-arm64)。'
  s.homepage         = 'https://gitee.com/wonder_ios_sdk/WDISFramework_Spec'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { '13710023492@163.com' => '13710023492@163.com' }

  # 通过 Git Tag 获取源码/二进制，不走 zip
  s.source           = { :git => 'https://gitee.com/wonder_ios_sdk/WDISFramework_Spec.git',
                         :tag => s.version.to_s }

  s.ios.deployment_target = '13.0'
  s.swift_versions        = ['5.0', '5.9']

# ========= 交付二进制静态库 =========
# ⚠️ 删除 s.source_files，因为不再让集成方编译源码
# ⚠️ 只保留 vendored_frameworks + public_header_files
s.vendored_frameworks = 'WDISFramework.framework'

# 明确哪些头文件对外可见（位于 framework/Headers/ 下）
# ↓ 新增两行 ↓
s.source_files         = 'WDISFramework.framework/Headers/*.h'
s.public_header_files  = 'WDISFramework.framework/Headers/*.h'

# CocoaPods 自动把 framework 内部的 .bundle / .nib 等资源收进来，
# 不需要再额外写 resource_bundles，除非你有独立散落的资源文件
# 若之前写的 bundle 路径已无效，可直接删掉
# 拷贝 framework 根目录里所有 png
s.resources = 'WDISFramework.framework/*.png'
  # 仅真机构建；排除模拟器 arm64，避免 lint/集成报错
  # 仅一次性赋值即可
s.pod_target_xcconfig = {
  'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64',
  'OTHER_LDFLAGS'                        => '-ObjC'
}

s.user_target_xcconfig = {
  'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
}

  # ========== 三方依赖（保持原版，删掉重复） ==========
  s.dependency 'ThinkingDataCore',           '1.0.2'
  s.dependency 'ThinkingSDK',                '3.0.4'
  s.dependency 'Adjust',                     '5.2.0'
  s.dependency 'FBSDKCoreKit',               '18.0.0'
  s.dependency 'FBSDKLoginKit',              '18.0.0'
  s.dependency 'FBSDKShareKit',              '18.0.0'
  s.dependency 'Google-Mobile-Ads-SDK',      '12.2.0'
  s.dependency 'Firebase',                   '11.12.0'
  s.dependency 'FirebaseAnalytics',          '11.12.0'
  s.dependency 'FirebaseMessaging',          '11.12.0'
  s.dependency 'FirebaseCrashlytics',        '11.12.0'
  s.dependency 'FirebaseDynamicLinks',       '11.12.0'
  s.dependency 'FirebaseRemoteConfig',       '11.12.0'
  s.dependency 'JJException',                '0.2.13'
  s.dependency 'TAThirdParty',               '0.3.5'
  s.dependency 'OdeeoSDK',                   '3.5.4'
  s.dependency 'AFNetworking',               '4.0.1'

  # -------- IronSource 与广告聚合适配器 --------
  s.dependency 'IronSourceSDK',                '8.7.0.0'
  s.dependency 'IronSourceAdQualitySDK',       '7.23.3'
  s.dependency 'IronSourceAppLovinAdapter',    '4.3.52.0'
  s.dependency 'IronSourceBidMachineAdapter',  '4.3.14.0'
  s.dependency 'IronSourceBigoAdapter',        '4.3.4.0'
  s.dependency 'IronSourceChartboostAdapter',  '4.3.20.0'
  s.dependency 'IronSourceCSJAdapter',         '4.3.10.0'
  s.dependency 'IronSourceAdMobAdapter',       '4.3.63.0'
  s.dependency 'IronSourceHyprMXAdapter',      '4.3.9.0'
  s.dependency 'IronSourceInMobiAdapter',      '4.3.26.0'
  s.dependency 'IronSourceVungleAdapter',      '4.3.42.0'
  s.dependency 'IronSourceMintegralAdapter',   '4.3.33.0'
  s.dependency 'IronSourceMobileFuseAdapter',  '4.3.6.0'
  s.dependency 'IronSourceMolocoAdapter',      '4.3.14.0'
  s.dependency 'IronSourceOguryAdapter',       '4.3.3.0'
  s.dependency 'IronSourcePangleAdapter',      '4.3.40.0'
  s.dependency 'IronSourceSmaatoAdapter',      '4.3.16.0'
  s.dependency 'IronSourceUnityAdsAdapter',    '4.3.49.0'
  s.dependency 'IronSourceVerveAdapter',       '4.3.4.0'
  s.dependency 'IronSourceYandexAdapter',      '4.3.13.0'
  s.dependency 'IronSourceFyberAdapter',       '4.3.41.0'
 # s.dependency 'IronSourceFacebookAdapter',    '4.3.49.0'

  # -------- 其他聚合渠道 --------
  s.dependency 'BidMachineIronSourceCustomAdapter', '3.2.0.1'
  s.dependency 'zMaticoo',                          '1.4.3'
  s.dependency 'TaurusxAdsSDK',                     '1.3.1'
  s.dependency 'TaurusxAdsSDK/IronSourceAdapter',   '1.3.1'
  s.dependency 'Bidon',                             '0.7.19'
  s.dependency 'BidonAdapterIronSource',            '0.7.19.0'
end
